import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.css'
import './plugins/element'
import axios from 'axios'

Vue.config.productionTip = false
axios.defaults.baseURL='http://192.168.1.147:8082'
// 添加请求拦截器
axios.interceptors.request.use(config =>{
  // console.log(config)
  config.headers.Authorization =window.sessionStorage.getItem("token");
  return config;
})
Vue.prototype.$http=axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
